<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Add guests</title>
    </h:head>
    <h:body>
        <h3><h:outputText value="Add a guest!"/></h3>
        <a href="viewguest.xhtml">View guests</a>
        <h:form>
            <table id="addGuest">
                <tr>
                    <td>Name:</td>
                    <td>
                        <h:inputText value="#{guestDataBean.guestBean.firstName}"/>
                    </td>
                </tr>
                <tr>
                    <td>Last Name:</td>
                    <td>
                        <h:inputText value="#{guestDataBean.guestBean.lastName}"/>
                    </td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td>
                        <h:inputText value="#{guestDataBean.guestBean.email}"/>
                    </td>
                </tr>
            </table>
            <p>
                <h:commandButton value="submit" action="#{guestDataBean.addGuest}"/>
            </p>
        </h:form>
    </h:body>
</html>

